package hn.cch.apache.commons.collections4;

import org.apache.commons.collections4.CollectionUtils;
import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

public class Collections4Test {

    @Test
    public void useCollectionUtils() {
        // List<String> stringList = null;
        List<String> stringList = new ArrayList<>();
        // 空指针和长度为0
        System.out.println(CollectionUtils.isEmpty(stringList));
    }


}
